package com.smxy.daydayup.service.serviceImpl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.smxy.daydayup.pojo.Homework;
import com.smxy.daydayup.mapper.HomeworkMapper;
import com.smxy.daydayup.service.HomeworkService;
/**
  * @team daydayup
  * @time 2021-12-06 21:45
  */
@Service
public class HomeworkServiceImpl implements HomeworkService{

    @Resource
    private HomeworkMapper homeworkMapper;

    @Override
    public int deleteByPrimaryKey(Long homeworkId) {
        return homeworkMapper.deleteByPrimaryKey(homeworkId);
    }

    @Override
    public int insert(Homework record) {
        return homeworkMapper.insert(record);
    }

    @Override
    public int insertSelective(Homework record) {
        return homeworkMapper.insertSelective(record);
    }

    @Override
    public Homework selectByPrimaryKey(Long homeworkId) {
        return homeworkMapper.selectByPrimaryKey(homeworkId);
    }

    @Override
    public int updateByPrimaryKeySelective(Homework record) {
        return homeworkMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Homework record) {
        return homeworkMapper.updateByPrimaryKey(record);
    }

}
